<%--
Created by IntelliJ IDEA.
User: kingry lee
Date: 2019/12/20
Time: 16:59
--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>登入页面</title>
    <link href="css/style.css" type="text/css" rel="stylesheet" />
    <link href="css/login.css" type="text/css" rel="stylesheet" />

</head>

<body class="body_login">

<div class="login_t">
    <div class="login_logo"><a href="" target="_blank" ></a></div>
    <div class="login_title">欢迎登陆</div>
    <div class="login_txt"><img src="img/login_03.jpg" width="285" height="26" alt=""/></div>
</div>
<div class="login_c">
    <div class="login_c_left"><img src="img/login_f.jpg" width="369" height="314" alt=""/></div>
    <div class="login_c_right">
        <form action="${pageContext.request.contextPath}/user?method=login" method="post">
        <dl>
            <dt><label for="name">账&nbsp;&nbsp;&nbsp;号：</label></dt>
            <dd><input name="phone" id="name" type="text" class="username" value="17683706521"/></dd>
            <dd><span style="color: red" id="msg"></span></dd>
        </dl>
        <dl>
            <dt><label for="password">密&nbsp;&nbsp;&nbsp;码：</label></dt>
            <dd><input name="password" id="password" type="password" class="password" value="123456"/></dd>
        </dl>

        <dl>
            <dt><label for="yzm">验证码：</label></dt>
            <dd>
                <input id="yzm" type="text" class="yzm_txt"/>
                <div class="yzm"><img src="img/login_07.jpg" width="82" height="30" alt=""/></div>
                <div class="yzm_ot"><a href="javascript:void(0)">看不清换一张</a></div>
            </dd>
        </dl>
        <div class="login_butt">
            <input type="submit" class="bts" value="登陆"/>
            <input type="button" class="bts" value="取消"/>
        </div>
        </form>
        <div class="login_zc">
            <a href="" target="_blank" class="login_zc1">忘记登陆密码</a>
            <a href="register.jsp" target="_blank" class="login_zc2">免费注册</a>
        </div>
    </div>
</div>
<div class="footer_m mar38">
    <div class="footer_nav">
        <a href="" target="_blank">关于我们</a>|
        <a href="" target="_blank">联系我们</a>|
        <a href="" target="_blank">人才招聘</a>|
        <a href="" target="_blank">广告服务</a>|
        <a href="" target="_blank">友情链接</a>|
        <a href="" target="_blank">销售联盟</a>|
        <a href="" target="_blank">公司简介</a>
    </div>
    <div class="footer_copyright">
        网络文化经营许可证鄂网文[2015]0278-060号  Copyright © 2015-2018  版权所有
    </div>
</div>
<c:if test="${param.ok == 0}">
    <script>
        document.querySelector("#msg").innerHTML = "用户名密码错误！";
    </script>
</c:if>

<c:if test="${param.msg == 0}">
    <script>
        alert("请先登入！")
    </script>
</c:if>
</body>
</html>